Total Fees Collected
Queries the total amount of fees collected by the specifeid VLP.
query Vlp($contract: String!) {
vlp(contract: $contract) {
total_fees_collected {
lp_fees {
totals {
denom
amount
}
}
euclid_fees {
totals {
denom
amount
}
}
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Vlp($contract: String!) {\n vlp(contract: $contract) {\n total_fees_collected {\n lp_fees {\n totals {\n denom\n amount\n }\n }\n euclid_fees {\n totals {\n denom\n amount\n }\n }\n }\n }\n}","variables":{"contract":"nibi1pys22jem6l222sxhexe7dmggtz8xkmhm49p7z3wjgrcdk3t46hgsle088m"}}'
Arguments
- contract (String!): The contract address of the VLP to query.
Return Fields
Field | Type | Description |
---|---|---|
lp_fees | LpFees | The total fees collected by liquidity providers. |
euclid_fees | EuclidFees | The total fees collected by Euclid protocol. |
LpFees
Field | Type | Description |
---|---|---|
denom | String | The denomination of the fee. |
amount | String | The total amount of fees in that denomination. |
EuclidFees
Field | Type | Description |
---|---|---|
denom | String | The denomination of the fee. |
amount | String | The total amount of fees in that denomination. |